﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="studentProfile_.aspx.cs" Inherits="Project.studentProfile_" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="main.css" rel="stylesheet" />

</head>
<body>
    <form id="form1" runat="server">
                <div>
                    <asp:Label ID="lbl_lastlogin" runat="server" Text="Label"></asp:Label>
                    <asp:Label ID="lbl_username" CssClass="lblUser" runat="server" Text=""></asp:Label>
                    <asp:Button ID="btn_logout" CssClass="logoutstyle" runat="server" Text="Log Off" OnClick="btn_logout_Click" Width="78px" />
                    <asp:Label ID="lbl_profile" CssClass="profile_text_style" runat="server" Text="Student Profile"></asp:Label>
  <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>    
                <table class="student_table">
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:Button ID="btn_appointment" runat="server" BackColor="#FFFF99" Font-Bold="True" Font-Names="Arial" Font-Size="Medium" Height="44px" OnClick="btn_appointment_Click" Text="Schedule an Appointment" Width="288px" />
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text="First Name"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txt_firstName" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label2" runat="server" Text="Last Name"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txt_lastName" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lbl_programCode" runat="server" Text="Program Code"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txt_programCode" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label3" runat="server" Text="Email Primary"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txt_email" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label4" runat="server" Text="Email Secondary"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txt_emailS" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label5" runat="server" Text="Cell Number"></asp:Label></td>
                            <td>
                                <asp:TextBox ID="txt_cellNumber" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label6" runat="server" Text="International"></asp:Label></td>
                            <td>
                                <asp:DropDownList ID="dl_international" runat="server" Height="22px" Width="154px">
                                    <asp:ListItem Value="true">Yes</asp:ListItem>
                                    <asp:ListItem Value="false" Selected="True">No</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource1" EnableModelValidation="True" GridLines="Horizontal">
                                    <AlternatingRowStyle BackColor="#F7F7F7" />
                                    <Columns>
                                        <asp:BoundField DataField="AppDate" HeaderText="AppDate" SortExpression="AppDate" />
                                        <asp:BoundField DataField="AppStart" HeaderText="AppStart" SortExpression="AppStart" />
                                        <asp:BoundField DataField="AdvisorId" HeaderText="AdvisorId" SortExpression="AdvisorId" />
                                        <asp:BoundField DataField="Location" HeaderText="Location" SortExpression="Location" />
                                        <asp:BoundField DataField="Purpose" HeaderText="Purpose" SortExpression="Purpose" />
                                    </Columns>
                                    <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                                    <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                                    <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                                    <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                                </asp:GridView>
                                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:StudentAdvisorString %>" SelectCommand="SELECT [AppDate], [AppStart], [AdvisorId], [Location], [Purpose] FROM [appointment] WHERE ([StudentId] = @StudentId)">
                                    <SelectParameters>
                                        <asp:SessionParameter Name="StudentId" SessionField="userID" Type="String" />
                                    </SelectParameters>
                                </asp:SqlDataSource>
                            </td>
                        </tr>
                    </table>
            </ContentTemplate>
    </asp:UpdatePanel>
                    <div style="position:absolute; top:450px;left:450px"></div>
                </div>
    </form>
</body>
</html>
